package com.itheima.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.dto.PmsPruductQueryParam;
import com.itheima.pojo.db.PmsProduct;
import com.itheima.pojo.db.Product;

import java.util.List;

public interface PmsProductApi {
    void insert(PmsProduct product);

    Product selectById(Long productId);

    IPage<PmsProduct> listByCondition(IPage<PmsProduct> page, PmsPruductQueryParam productQueryParam);

    List<PmsProduct> list(String keyword);

    int updateDeleteStatus(List<Long> ids, Integer deleteStatus);

    int updateNewStatus(List<Long> ids, Integer newStatus);

    int updatePublishStatus(List<Long> ids, Integer publishStatus);

    int updateRecommendStatus(List<Long> ids, Integer recommendStatus);

    int updateVerifyStatus(List<Long> ids, Integer verifyStatus);

    void updateById(PmsProduct product);

    PmsProduct getUpdateInfo(Long id);

    void update(PmsProduct product, Long id);
}
